
using System;

using stefc.geo.lib;

namespace stefc.geo.test
{

	public class Program
	{

		public static void Main()
		{
			Console.WriteLine("Some tests");
		
			Geographic berlin = new Geographic("52°31' 13°22'"); 
			Geographic tokio = new Geographic("35°40' 139°35'");
			Geographic moskau = new Geographic(55.75, 37.616667);
			Geographic lissabon = new Geographic(38.692668, -9.177944);
			Geographic madrid = new Geographic("40°25' -3°42'");
			Geographic newYork = new Geographic("40°44' -74°02'");
			Geographic oslo = new Geographic("59°54' 10°44'");
			
			//Console.WriteLine("Berlin = {0}", berlin.ToString());
			//Console.WriteLine("Oslo = {0}", oslo.ToString());
			
			Console.WriteLine("Berlin -> Tokio");
			Console.WriteLine("{0:N} km", berlin.GetDistance(tokio));
			Console.WriteLine("{0:N}", berlin.GetAngle(tokio));
			
			Console.WriteLine("Berlin -> Moskau");
			Console.WriteLine("{0:N} km", berlin.GetDistance(moskau));
			Console.WriteLine("{0:N}", berlin.GetAngle(moskau));
			
			Console.WriteLine("Berlin -> Madrid");
			Console.WriteLine("{0:N} km", berlin.GetDistance(madrid));
			Console.WriteLine("{0:N}", berlin.GetAngle(madrid));
			
			Console.WriteLine("Berlin -> New York");
			Console.WriteLine("{0:N} km", berlin.GetDistance(newYork));
			Console.WriteLine("{0:N}", berlin.GetAngle(newYork));
			
			Console.WriteLine("Berlin -> Oslo");
			Console.WriteLine("{0:N} km", berlin.GetDistance(oslo));
			Console.WriteLine("{0:N}", berlin.GetAngle(oslo));
	
		}
	}
}
